package learn.unittest.com;

import static org.junit.Assert.*;

import org.junit.Test;

public class JunitTestApi {

	 @Test
	   public void testAdd() {
	      //test data
	      int num= 5;
	      String temp= null;
	      String str= "Junit is working fine";
          String name =null;
	      //check vale has equal with object. If value = oject then return true. else return error
	      assertEquals("Junit is working fine", str);
	      
	      //check for false condition
	      assertFalse(num > 6);
	    //check for true condition
          assertTrue(str, str.length()>0);
	      //check for not null value
	      assertNotNull(str);
	      //check for null object
	      assertNull(name);
	      
	   }

}
